<!--
<div class="loading" [hidden]="!loadingShow&&!!addBase.logo">
  <app-loading></app-loading>
</div>
<div class="container-fluid layout" *ngIf="!loadingShow&&!!addBase.logo">
  <form #AddBaseForm="ngForm">
    <fieldset>
      <legend>1.小程序基础信息</legend>
      <div class="form-group row">
        <label class="col-md-2 col-form-label"><span class="require-tips">*</span>账号绑定手机号</label>
        <div class="col-md-5">
          {{bindTel}}
        </div>
      </div>
      <div class="form-group row">
        <label class="col-md-2 col-form-label"><span class="require-tips">*</span>店铺名称</label>
        <div class="col-md-5">
          <input type="text" class="form-control" name="name" #name="ngModel" [(ngModel)]="addBase.title" required>
          <p [hidden]="name.pristine || name.valid" class="alert alert-danger">门店名称不能为空!</p>
        </div>
      </div>
      <div class="form-group row">
        <label class="col-md-2 col-form-label"><span class="require-tips">*</span>AppID</label>
        <div class="col-md-5">
          <input type="text" class="form-control" name="AppID" #AppID="ngModel" [(ngModel)]="addBase.AppID" disabled
                 required>
          <p [hidden]="AppID.pristine || AppID.valid" class="alert alert-danger">AppID不能为空!</p>
        </div>
      </div>
      <div class="form-group row">
        <label class="col-md-2 col-form-label"><span class="require-tips">*</span>AppSecret</label>
        <div class="col-md-5">
          <input type="password" class="form-control" name="AppSecret" #AppSecret="ngModel"
                 [(ngModel)]="addBase.AppSecret" disabled required>
          <p [hidden]="AppSecret.pristine || AppSecret.valid" class="alert alert-danger">AppSecret不能为空!</p>
        </div>
      </div>
      <div class="form-group row">
        <label class="col-md-2 col-form-label"><span class="require-tips">*</span>联系电话</label>
        <div class="col-md-5">
          <input type="text" class="form-control" name="tel" #tel="ngModel" [(ngModel)]="addBase.tel" required
                 appValidateMobile>
          <div [hidden]="AddBaseForm.controls.tel?.valid || AddBaseForm.controls.tel?.pristine"
               class="alert alert-danger">
            <p *ngIf="AddBaseForm.controls.tel?.errors?.required">必须输入</p>
            <p *ngIf="AddBaseForm.controls.tel?.errors?.validateMobile">格式不正确</p>
          </div>
        </div>
      </div>
      <div class="form-group row">
        <label class="col-md-2 col-form-label"><span class="require-tips">*</span>营业时间</label>
        <div class="col-md-5">
          <div class="ui-radio" [class.ui-radioed]="open_time === 0" (click)="open_time = 0"><i
            class="iconfont icon-iconfontradiobox"></i><span>24小时</span>
            <input type="radio" name="time_limit">
          </div>
          <div class="ui-radio" [class.ui-radioed]="open_time === 1" (click)="open_time = 1"><i
            class="iconfont icon-iconfontradiobox"></i><span>自定义</span>
            <input type="radio" name="time_limit">
          </div>
          <div *ngIf="open_time === 1">
            <input type="text" class="form-control time-limit" name="open_time" placeholder="08:00"
                   [(ngModel)]="startTime"> -
            <input type="text" class="form-control time-limit" name="end_time" placeholder="18:00"
                   [(ngModel)]="endTime">
          </div>
        </div>
      </div>
      <div class="form-group row">
        <label class="col-md-2 col-form-label"><span class="require-tips">*</span>城市</label>
        <div class="col-md-7 form-inline">
          <select class="form-control" [(ngModel)]="provinceCode" name="province" (change)="changeProvince()">
            <option value="0">省</option>
            <option value="{{item.code}}{{item.name}}" *ngFor="let item of provinceList">{{item.name}}</option>
          </select>
          <select class="form-control" [(ngModel)]="cityCode" name="city" (change)="changeCity()">
            <option value="0">市</option>
            <option value="{{item.code}}{{item.name}}" *ngFor="let item of cityList">{{item.name}}</option>
          </select>
          <select class="form-control" [(ngModel)]="regionCode" name="region" (change)="changeRegion()">
            <option value="0">区</option>
            <option value="{{item.code}}{{item.name}}" *ngFor="let item of regionList">{{item.name}}</option>
          </select>
        </div>
      </div>

      <div class="form-group row">
        <label class="col-md-2 col-form-label"><span class="require-tips">*</span>详细地址</label>
        <div class="col-md-4">
          <input type="text" class="form-control" placeholder="详细至门牌号，请与营业执照地址一致" [(ngModel)]="addBase.address_detail"
                 name="address">
        </div>
        <div class="colmd-1 form-inline">
          <button class="btn btn-success" type="button" (click)="mapSearch()">搜索</button>
        </div>
      </div>

      <div class="form-group row">
        <label class="col-md-2 col-form-label"><span class="require-tips">*</span>详细地址</label>
        <div class="col-md-8">
          <aqm-map #map [options]="options" (ready)="onReady($event)" style="height: 500px;"></aqm-map>
        </div>
      </div>

      &lt;!&ndash;<div class="form-group row">&ndash;&gt;
      &lt;!&ndash;<label class="col-md-2 col-form-label"><span class="require-tips">*</span>门脸照片</label>&ndash;&gt;
      &lt;!&ndash;<div class="col-md-5">&ndash;&gt;
      &lt;!&ndash;<div class="photo-box">&ndash;&gt;
      &lt;!&ndash;&lt;!&ndash;<img src="{{item.ProductPic}}" alt="tu" class="img-rounded" *ngIf="item.ProductPic">&ndash;&gt;&ndash;&gt;
      &lt;!&ndash;<div class="photo-file" [class.opacity-0]="0">&ndash;&gt;
      &lt;!&ndash;+&ndash;&gt;
      &lt;!&ndash;<input class="ui-file-input" type="file" required>&ndash;&gt;
      &lt;!&ndash;</div>&ndash;&gt;
      &lt;!&ndash;</div>&ndash;&gt;
      &lt;!&ndash;<div class="store-photo-tips">亲，一张真实美观的门脸照可以提升门店形象哦！</div>&ndash;&gt;
      &lt;!&ndash;</div>&ndash;&gt;
      &lt;!&ndash;</div>&ndash;&gt;
      &lt;!&ndash;<div class="form-group row">&ndash;&gt;
      &lt;!&ndash;<label class="col-md-2 col-form-label"><span class="require-tips">*</span>店内照片</label>&ndash;&gt;
      &lt;!&ndash;<div class="col-md-5">&ndash;&gt;
      &lt;!&ndash;<div class="photo-box">&ndash;&gt;
      &lt;!&ndash;&lt;!&ndash;<img src="{{item.ProductPic}}" alt="tu" class="img-rounded" *ngIf="item.ProductPic">&ndash;&gt;&ndash;&gt;
      &lt;!&ndash;<div class="photo-file" [class.opacity-0]="0">&ndash;&gt;
      &lt;!&ndash;+&ndash;&gt;
      &lt;!&ndash;<input class="ui-file-input" type="file" required>&ndash;&gt;
      &lt;!&ndash;</div>&ndash;&gt;
      &lt;!&ndash;</div>&ndash;&gt;
      &lt;!&ndash;<div class="store-photo-tips">亲，简介干净的店内照片可以让用户放心点单哦！</div>&ndash;&gt;
      &lt;!&ndash;</div>&ndash;&gt;
      &lt;!&ndash;</div>&ndash;&gt;
      <div class="form-group row" *ngIf="hasBindPay">
        <label class="col-md-2 col-form-label">商户号</label>
        <div class="col-md-5">
          <input type="text" class="form-control" name="mch_id" [(ngModel)]="addBase.mch_id" disabled>
        </div>
      </div>
      <div class="form-group row" *ngIf="hasBindPay">
        <label class="col-md-2 col-form-label">支付key</label>
        <div class="col-md-5">
          <input type="password" class="form-control" name="pay_key" [(ngModel)]="addBase.pay_key" disabled>
        </div>
      </div>
      <div class="form-group row" *ngIf="!hasBindPay">
        <label class="col-md-2 col-form-label">商户号</label>
        <div class="col-md-5">
          <input type="text" class="form-control" name="mch_id" [(ngModel)]="mch_id">
        </div>
      </div>
      <div class="form-group row" *ngIf="!hasBindPay">
        <label class="col-md-2 col-form-label">支付key</label>
        <div class="col-md-5">
          <input type="text" class="form-control" name="pay_key" [(ngModel)]="pay_key">
        </div>
      </div>

      <div class="form-group row" *ngIf="!!status">
        <label class="col-md-2 col-form-label"><span class="require-tips"> </span>门店LOGO</label>
        <div class="col-md-5">
          <div class="ui-file">
            <i class="iconfont icon-add"></i>
            上传图片
            <input class="ui-file-input" type="file" name="license" (change)="uploadImg($event,'logo')">
          </div>
          <div class="edvert-photo-warp">
            <img class="imgSize" src="{{img_url}}">
          </div>
        </div>
      </div>
      <div class="text-center mt20">
        <button type="submit" class="btn btn-success btn-md-long" [disabled]="!AddBaseForm.form.valid"
                (click)="save(false)">保　存
        </button>
        <button type="submit" class="btn btn-success" [disabled]="!AddBaseForm.form.valid" (click)="save(true)">
          保存并添加商品
        </button>
      </div>
    </fieldset>
  </form>
</div>
<app-notification [type]="type" [message]="message" [isShow]="isShow"
                  (promptIsShow)="isShow = $event"></app-notification>

-->
